<template>
    <div v-if=" show ">
        <form id="comform" method="post" action="{{url}}" ethod="post">
            <input v-for=" (key, value) in rdata "  type=" hidden "  name=" {{key}} "  value="{{value}}" />
        </form>
    </div>
</template>

<script>
export default{
    props: {
        show: {
          default: false,
          type: Boolean
        },
        url: {
            default: ''
        },
        rdata: {
          	default: {}
        }
    },
	data () {
		return {
			busy: false,
			name:'form'
		}
	},
    methods:{
      submit(){
      	if(this.busy){
      		return;
      	}
      	this.busy = true;

        setTimeout(function() {
        	//console.log(url)
        	document.getElementById('comform').submit()
        }, 500);

        //document.getElementById('comform').submit()
      }
    }
}
</script>

